package com.ma.netana.service.admin;

import com.ma.netana.dao.admin.AdminMapper;
import com.ma.netana.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminLoginImpl implements AdminLogin{

    private AdminMapper adminMapper;

    public void setAdminMapper(AdminMapper adminMapper){
        this.adminMapper = adminMapper;
    }
    @Override
    public Admin getLoginUser(String admin_name) {
        return adminMapper.getLoginUser(admin_name);
    }
}
